package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the myuser database table.
 * 
 */
@Entity
public class Myuser implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int userid;

	private String authority;

	private String password;

	private String username;

	//bi-directional many-to-one association to Apply
	@OneToMany(mappedBy="myuser")
	private Set<Apply> applies;

	//bi-directional many-to-one association to Mycomment
	@OneToMany(mappedBy="myuser1")
	private Set<Mycomment> mycomments1;

	//bi-directional many-to-one association to Mycomment
	@OneToMany(mappedBy="myuser2")
	private Set<Mycomment> mycomments2;

	//bi-directional many-to-one association to Mylike
	@OneToMany(mappedBy="myuser")
	private Set<Mylike> mylikes;

	//bi-directional many-to-one association to Target
	@OneToMany(mappedBy="myuser")
	private Set<Target> targets;

	//bi-directional many-to-one association to TargetTag
	@OneToMany(mappedBy="myuser")
	private Set<TargetTag> targetTags;

    public Myuser() {
    }

	public int getUserid() {
		return this.userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getAuthority() {
		return this.authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Set<Apply> getApplies() {
		return this.applies;
	}

	public void setApplies(Set<Apply> applies) {
		this.applies = applies;
	}
	
	public Set<Mycomment> getMycomments1() {
		return this.mycomments1;
	}

	public void setMycomments1(Set<Mycomment> mycomments1) {
		this.mycomments1 = mycomments1;
	}
	
	public Set<Mycomment> getMycomments2() {
		return this.mycomments2;
	}

	public void setMycomments2(Set<Mycomment> mycomments2) {
		this.mycomments2 = mycomments2;
	}
	
	public Set<Mylike> getMylikes() {
		return this.mylikes;
	}

	public void setMylikes(Set<Mylike> mylikes) {
		this.mylikes = mylikes;
	}
	
	public Set<Target> getTargets() {
		return this.targets;
	}

	public void setTargets(Set<Target> targets) {
		this.targets = targets;
	}
	
	public Set<TargetTag> getTargetTags() {
		return this.targetTags;
	}

	public void setTargetTags(Set<TargetTag> targetTags) {
		this.targetTags = targetTags;
	}
	
}